# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-ovos-utils
pkgver=0.0.12
pkgrel=0
pkgdesc="Collection of simple utilities for use across the MyCroft ecosystem"
url="https://github.com/OpenVoiceOS/ovos_utils"
arch="noarch"
license="Apache-2.0"
depends="
	py3-colour
	py3-inflection
	py3-json-database
	py3-kthread
	py3-mycroft-messagebus-client
	py3-pexpect
	py3-phoneme-guesser
	py3-pronouncing
	py3-requests
	python3
	"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="ovos_utils-$pkgver.tar.gz::https://github.com/OpenVoiceOS/ovos_utils/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/ovos_utils-$pkgver"

build() {
	python3 setup.py build
}

check() {
	# test_lang.py requires a network connection
	PYTHONPATH="$PWD/build/lib" pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
0e733babdea781bd3da8ed1edc0c92312dc7c76440094b2ec71f58f73e6845367e28818e0ee7a797ba4ef550cc06283bc57be6e66d56e38b38d2139064af2819  ovos_utils-0.0.12.tar.gz
"
